package com.exam.pojo.domain;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

/**
 * @author LG
 */
@Data
@Document(collection = "ranking")
public class Ranking {

    @Id
    private String id;

    @Field("nick_name")
    private String nickName;

    @Field("head_img")
    private String headImg;

    private Double rate;

    private Integer nums;

    private Long duration;
}
